﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Wika
{
    public partial class InputForm1 : Form
    {
        private int index;

        public int Index
        {
            get { return index; }
            set { index = value; }
        }
        private int binnumber;

        public int Binnumber
        {
            get { return binnumber; }
            set { binnumber = value; }
        }
        private bool sapxep;

        public bool Sapxep
        {
            get { return sapxep; }
            set { sapxep = value; }
        }

        public InputForm1()
        {
            InitializeComponent();
            txt1.Focus();
        }

        private void btn_OK_Click(object sender, EventArgs e) 
        {
            try
            {
                this.Index = int.Parse(txt1.Text);
                this.Binnumber = int.Parse(txt2.Text);
                this.Sapxep = chkb_1.Checked;
                this.Close();
            }
            catch (FormatException ex)
            {
                MessageBox.Show("Missing value !!");
            }
        }

        private void InputForm1_Load(object sender, EventArgs e)
        {
            
        }
    }
}
